<?php

use yii\db\Schema;
use yii\db\Migration;

class m180206_084114_add_creative_hero_app_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%creative}}', 'hero_app', 'int(1) not null default 0 comment "is for hero app" after visible_urls');
    }

    public function down()
    {
        echo "m180206_084114_add_creative_hero_app_field cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
